package cn.edu.lsnu.mbti.service;

import cn.edu.lsnu.mbti.entity.Region;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface RegionService extends IService<Region> {

    //查询地区集合
    List<Region> regionList();

    //根据名称分页查询地区
    Page<Region> queryPageRegionList(int pageNum, int pageSize, String name);

    //新增或修改地区信息
    String saveRegion(Region region);

    //根据id删除
    String deleteById(String regionId);
}
